package com.funmi.lizip.entity.dto.patrolTrack;

import com.funmi.lizip.common.base.PageRequest;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Past;
import javax.validation.constraints.PastOrPresent;
import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@ApiModel(value = "PatrolTrackAddRequest对象", description = "添加巡护人员")
public class PatrolTrackQueryRequest extends PageRequest implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("护林员姓名")
    private String name;

    @Past
    @ApiModelProperty("开始时间")
    private LocalDateTime startPatrolDate;

    @PastOrPresent
    @ApiModelProperty("结束时间")
    private LocalDateTime endPatrolDate;
}
